export function changeTabs (index) {
	if(index == 0){
		uni.setTabBarStyle({
			borderStyle: "#f4f5fa",
			color: "#8d8f92",
			selectedColor: "#FFFFFF",
			backgroundColor: "#1b1f24",
		})
		uni.setTabBarItem({
			index: 0,
			pagePath: "pages/tabbar/home",
			text: "首页",
			iconPath: "/static/tabbar/1.png",
			selectedIconPath: "/static/tabbar/1-active.png"
		})
		uni.setTabBarItem({
			index: 1,
			pagePath: "pages/tabbar/circle",
			text: "富商圈",
			iconPath: "/static/tabbar/2.png",
			selectedIconPath: "/static/tabbar/2.png"
		})
		uni.setTabBarItem({
			index: 2,
			pagePath: "pages/tabbar/memoirist",
			text: "去发布",
			iconPath: "/static/tabbar/3.png",
			selectedIconPath: "/static/tabbar/33active.png"
		})
		uni.setTabBarItem({
			index: 3,
			pagePath: "pages/index/index",
			text: "商城",
			iconPath: "/static/tabbar/4.png",
			selectedIconPath: "/static/tabbar/4.png"
		})
		uni.setTabBarItem({
			index: 4,
			pagePath: "pages/tabbar/my",
			text: "我的",
			iconPath: "/static/tabbar/5.png",
			selectedIconPath: "/static/tabbar/5.png"
		})
	}else{
		uni.setTabBarStyle({
			borderStyle: "#ffffff",
			color: "#8d8f92",
			selectedColor: "#D82A1F",
			backgroundColor: "#ffffff",
		})
		uni.setTabBarItem({
			index: 0,
			pagePath: "pages/tabbar/home",
			text: "首页",
			iconPath: "/static/tabbar/11.png",
			selectedIconPath: "/static/tabbar/11.png"
		})
		uni.setTabBarItem({
				index: 1,
			pagePath: "pages/tabbar/circle",
			text: "富商圈",
			iconPath: "/static/tabbar/22.png",
			selectedIconPath: "/static/tabbar/22-active.png"
		})
		uni.setTabBarItem({
			index: 2,
			pagePath: "pages/tabbar/memoirist",
			text: "去发布",
			iconPath: "/static/tabbar/33.png",
			selectedIconPath: "/static/tabbar/33active.png"
		})
		uni.setTabBarItem({
			index: 3,
			pagePath: "pages/index/index",
			text: "商城",
			iconPath: "/static/tabbar/44.png",
			selectedIconPath: "/static/tabbar/44-active.png"
		})
		uni.setTabBarItem({
			index: 4,
			pagePath: "pages/tabbar/my",
			text: "我的",
			iconPath: "/static/tabbar/55.png",
			selectedIconPath: "/static/tabbar/55-active.png"
		})
	}

}
